package cn.tedu;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("book")
public class BookController {
    @RequestMapping("play")
    public NoteBook play() {
        NoteBook book = new NoteBook();
        book.setName("NoteBook");
        book.setColor("红色");
        book.setPrice("work");
        book.setType("25");
        return book;
    }

}
